package com.wyg.blog.service.blog;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wyg.blog.model.blog.Message;
import com.wyg.blog.model.blog.MyComment;

import java.util.List;

public interface MessageService {
    IPage<Message> selectSomeMessages(Page<?> page);

    List<MyComment<Message>> selectMessagesByParentId(Page<?> page);

    Message selectMessageById(Integer id);

    String selectContentById(Integer id);

    boolean insertMessage(Message message);

    boolean renewMessageState(Integer id, boolean state);

    boolean renewMessage(Integer id, String content);

    boolean removeMessage(Integer id);

    String selectEmail(Integer id);

    boolean selectState(Integer id);
}
